package com.jsbs.iam.auth.mapper;

import com.jsbs.iam.auth.entity.IamRoleApplySystmRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IamRoleApplySystmRelationMapper {
    int deleteByPrimaryKey(Long rasRelationId);

    int insert(IamRoleApplySystmRelation record);

    int insertSelective(IamRoleApplySystmRelation record);

    IamRoleApplySystmRelation selectByPrimaryKey(Long rasRelationId);

    int updateByPrimaryKeySelective(IamRoleApplySystmRelation record);

    int updateByPrimaryKey(IamRoleApplySystmRelation record);


    /**
     * 功能描述：角色授权应用，先删除旧数据
     * @param iamRoleApplySystmRelation
     * @return int
     */
    int deleteRoleApplySystmRelation(@Param("iamRoleApplySystmRelation") IamRoleApplySystmRelation iamRoleApplySystmRelation);

}